//
//  Loan_BankcardTableViewCell.m
//  JinFuThree
//
//  Created by 爱尚 on 2018/9/11.
//  Copyright © 2018年 毛韶谦. All rights reserved.
//

#import "Loan_BankcardTableViewCell.h"

@implementation Loan_BankcardTableViewCell

-(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        [self initialize];
    }
    return self;
}

-(void)initialize{
    

    _iconImageView = [[UIImageView alloc]init];
    _iconImageView.image = [UIImage imageNamed:@"ic_zhaoshang"];
    [self addSubview:_iconImageView];
    [self.iconImageView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.mas_equalTo(self.mas_left).offset(20);
        make.centerY.mas_equalTo(self);
        make.width.height.mas_offset(@30);
    }];
    
    _backCardNumberLabel = [[UILabel alloc]init];
    _backCardNumberLabel.text = @"招商银行储蓄卡(2601)";
    _backCardNumberLabel.font = [UIFont boldSystemFontOfSize:15];
    _backCardNumberLabel.textColor = ThemeMaoBlackColor;
    [self addSubview:_backCardNumberLabel];
    [self.backCardNumberLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.mas_equalTo(self.iconImageView.mas_right).offset(20);
        make.centerY.mas_equalTo(self.iconImageView);
        make.height.mas_offset(@16);
        make.right.mas_equalTo(self.mas_right).offset(-12);
    }];
    
    UIView *line = [[UIView alloc]init];
    line.backgroundColor = ThemeMaoLineColor;
    [self addSubview:line];
    [line mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.mas_equalTo(self.mas_left).offset(16);
        make.right.mas_equalTo(self.mas_right).offset(-16);
        make.height.mas_offset(@0.5);
        make.bottom.mas_equalTo(self.mas_bottom);
    }];
}
- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
